<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/vue.min.js"></script>
</head>

<body>
<div id="app">
    <p>{{msg}}</p>
    <h4 v-cloak v-text="msg"></h4>
    <input type="button" value="请点击" v-bind:title="msg" @click="change">
</div>
</body>
<script>
    const vm = new Vue({
        el: '#app',
        data: {
            msg: '这是vue'
        },
        methods: {
            change: function () {
                alert(vm.$data.msg)
                console.log(vm)
            }
        }
    })
</script>

</html>